-
-
Notifications
You must be signed in to change notification settings - Fork 5
tag release #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
tag release #52
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Based on syntax_tree-xml - Added an example that uses multiple ERB-features and blocks
- Added some more specific test cases to easily track regressions
WIP Blocks
- A block containing the word `do` generated some errors. In ```ruby <% what_to_do do |form| %> ``` the `do` at the end of `what_to_do` was interpreted as the start of a block. To avoid this all erb-code is now parsed between word boundaries. So `what_to_do` will become one Token with type `erb_code`.
The following code caused errors: ``` <%= link_to("Düsseldorf", "http://duesseldorf.de") %> ```
```html <p>Here is a "<em><%= quote %></em>" in HTML</p> ```
In Vue we often use ``` <button-component> <template #button-content> Hello </template> </button-component> ```
Vue uses syntax like `v-b-modal.name_of_the_modal` for attribute names.
``` <div class=card></div> ``` can now be parsed and formatted as ``` <div class="card"></div> ```
which failed to parse
- Every time comments are formatted, another space was added to the end of it.
- Changes the maximum width for IfOp (ternary) as well as IfNode.
Example: ```erb <% # this is a comment %> ``` Output: ```diff -<% - - # this is a comment -%> +<% # this is a comment %> ```
Bumps [minitest](https://github.com/minitest/minitest) from 5.18.1 to 5.19.0. - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](minitest/minitest@v5.18.1...v5.19.0) --- updated-dependencies: - dependency-name: minitest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Wessman <[email protected]>
- Support ERB-tags before DOCTYPE. - Parse error on multiple DOCTYPE elements.
- If it is the last element in a block, remove the trailing whitespace
- Fixes #60 - Release v0.10.3
…62) * Avoid grouping single elements * Handles ERB-comments with newlines
```erb <div <%= "class='foo'" %>> <p>hello</p> </div> ```
* Handles spaces after do-arguments in ERB-tags * Release 0.10.5
Fixes closing tags of <summary>
Bumps [minitest](https://github.com/minitest/minitest) from 5.19.0 to 5.20.0. - [Changelog](https://github.com/minitest/minitest/blob/master/History.rdoc) - [Commits](minitest/minitest@v5.19.0...v5.20.0) --- updated-dependencies: - dependency-name: minitest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [syntax_tree](https://github.com/kddnewton/syntax_tree) from 6.1.1 to 6.2.0. - [Changelog](https://github.com/ruby-syntax-tree/syntax_tree/blob/main/CHANGELOG.md) - [Commits](ruby-syntax-tree/syntax_tree@v6.1.1...v6.2.0) --- updated-dependencies: - dependency-name: syntax_tree dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [rake](https://github.com/ruby/rake) from 13.0.6 to 13.1.0. - [Release notes](https://github.com/ruby/rake/releases) - [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc) - [Commits](ruby/rake@v13.0.6...v13.1.0) --- updated-dependencies: - dependency-name: rake dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Add instruction for installing husky * Add failing test for void elements * Allow parsing and formatting for unclosed void elements
- Adds Ruby 3.3 to the test matrix - Adds .tool-versions for asdf support
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@click
(Bump minitest from 5.16.1 to 5.16.2 #4)unless
syntax (Bump syntax_tree from 2.8.0 to 3.0.0 #5)